<?php $perm = new permission();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="./css/menu.css" rel="stylesheet" type="text/css">
<script language="javascript" src="./js/common.js"></script>
<script language="javascript" src="./js/cookie.js"></script>
<script language="javascript" src="./js/thread.js"></script>
<script language="javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('./images/arrow1.gif','./images/arrow2.gif');">

<ul id=nav>

    <?php if($perm->check_grouppermission(IMAGEDB)):?>
    <li><a id='a_leader' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">图片库管理</a>
        <ul id="role">
            <?php if($perm->check_permission(IMAGEDB, IMAGEDB_READ)):?>
            <li><a href="imageDb.php?action=view" target="main">图片库管理</a></li>
            <?php endif?>
        </ul>
    </li>
    <?php endif?>

    <?php if($perm->check_grouppermission(PRODUCTS)):?>
    <li><a id='a_leader' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">产品管理</a>
        <ul id="role">
            <?php if($perm->check_permission(PRODUCTS, PRODUCTS_VIEW)):?>
            <li><a href="products.php?action=view" target="main">产品中心</a></li>
            <?php endif?>

            <?php if($perm->check_permission(PRODUCTS, PRODUCTS_ADD)):?>
            <li><a href="products.php?action=addview" target="main">添加产品</a></li>
            <?php endif?>

            <?php if($perm->check_permission(PRODUCTS, PRODUCTS_CASE_VIEW)):?>
            <li><a href="case.php?action=view" target="main">案例中心</a></li>
            <?php endif?>

            <?php if($perm->check_permission(PRODUCTS, PRODUCTS_CASE_ADD)):?>
            <li><a href="case.php?action=addview" target="main">添加案列</a></li>
            <?php endif?>
        </ul>
    </li>
    <?php endif?>

    <?php if($perm->check_grouppermission(NEWS)):?>
    <li><a id='a_leader' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">产品管理</a>
        <ul id="role">
            <?php if($perm->check_permission(NEWS, NEWS_VIEW)):?>
            <li><a href="news.php?action=view" target="main">新闻列表</a></li>
            <?php endif?>

            <?php if($perm->check_permission(NEWS, NEWS_ADD)):?>
            <li><a href="news.php?action=addview" target="main">添加新闻</a></li>
            <?php endif?>
        </ul>
    </li>
    <?php endif?>

    <?php if($perm->check_grouppermission(HR)):?>
    <li><a id='a_leader' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">招聘管理</a>
        <ul id="role">
            <?php if($perm->check_permission(HR, HR_VIEW)):?>
            <li><a href="hr.php?action=view" target="main">招聘列表</a></li>
            <?php endif?>

            <?php if($perm->check_permission(HR, HR_ADD)):?>
            <li><a href="hr.php?action=addview" target="main">添加招聘</a></li>
            <?php endif?>
        </ul>
    </li>
    <?php endif?>

    <?php if($perm->check_grouppermission(ABOUT)):?>
    <li><a id='a_leader' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">关于我们</a>
        <ul id="role">
            <?php if($perm->check_permission(ABOUT, ABOUT_VIEW)):?>
            <li><a href="about.php?action=view" target="main">关于我们</a></li>
            <?php endif?>

            <?php if($perm->check_permission(ABOUT, ABOUT_ADD)):?>
            <li><a href="about.php?action=addview" target="main">添加关于我们</a></li>
            <?php endif?>
        </ul>
    </li>
    <?php endif?>

    <?php if($perm->check_grouppermission(FEEDBACK)):?>
    <li><a id='a_leader' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">联系我们</a>
        <ul id="role">
            <?php if($perm->check_permission(FEEDBACK, FEEDBACK_VIEW)):?>
            <li><a href="feedback.php?action=view" target="main">客户反馈信息</a></li>
            <?php endif?>
        </ul>
    </li>
    <?php endif?>


    <?php if($perm->check_grouppermission(SYSTEM)):?>
    <li><a id='a_leader' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">分类管理</a>
        <ul id="role">
            <?php if($perm->check_permission(SYSTEM, SYSTEM_SYS_KEY_CLASS)):?>
            <li><a href="system.php?action=key" target="main">业务分类管理</a></li>
            <?php endif?>
        </ul>
    </li>
    <?php endif?>
	
	<?php if($perm->check_grouppermission(ROLE)):?>
	<li><a id='a_role' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">用户管理</a>
		<ul id="role">
			<?php if($perm->check_permission(ROLE, ROLE_VIEW_ADMIN)):?>
			<li><a href="admin.php?action=view" target="main">用户列表</a></li>
			<?php endif?>
			
			<?php if($perm->check_permission(ROLE, ROLE_ADD_ADMIN)):?>
			<li><a href="admin.php?action=add" target="main">添加用户</a></li>
			<?php endif?>
			
			<?php //if($perm->check_permission(ROLE, ROLE_VIEW_ROLE)):?>
			<li><a href="role.php?action=view" target="main">用户组列表</a></li>
			<?php //endif?>
			
			<?php if($perm->check_permission(ROLE, ROLE_ADD_ROLE)):?>
			<li><a href="role.php?action=add" target="main">添加用户组</a></li>
			<?php endif?>
		</ul>
	</li>
	<?php endif?>
		
	<?php if($perm->check_grouppermission(MISC)):?>
	<li><a id='a_misc' href="javascript:;"><img src="./images/arrow1.gif" hspace="5" border="0" align="absmiddle">其它</a>
		<ul id="misc">
			<li><a href="index.php?action=main" target="main">关于后台</a></li>
			
			<?php if($perm->check_permission(MISC, MISC_EDIT_PASSWORD)):?>
			<li><a href="password.php?action=edit" target="main">修改密码</a></li>
			<?php endif?>
			
			<li><a href="index.php?action=logout" target="_top">退出登陆</a></li>
		</ul>
	</li>
	<?php endif?>
	
</ul>
</body>
</html>
